package com.ruoyi.liborder.service.impl;


import com.ruoyi.liborder.domain.LibOrderClass;
import com.ruoyi.liborder.mapper.LibOrderClassMapper;
import com.ruoyi.liborder.service.ILibOrderClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LibOrderClassServiceImpl implements ILibOrderClassService {
    @Autowired
    private LibOrderClassMapper libOrderClassMapper;

    /**
     * 查询班级
     *
     * @param classId 班级主键
     * @return 班级
     */
    @Override
    public LibOrderClass selectLibOrderClassByClassId(Long classId) {
        return libOrderClassMapper.selectLibOrderClassByClassId(classId);
    }

    /**
     * 查询班级列表
     *
     * @param libOrderClass 班级
     * @return 班级
     */
    @Override
    public List<LibOrderClass> selectLibOrderClassList(LibOrderClass libOrderClass) {
        return libOrderClassMapper.selectLibOrderClassList(libOrderClass);
    }

    /**
     * 新增班级
     *
     * @param libOrderClass 班级
     * @return 结果
     */
    @Override
    public int insertLibOrderClass(LibOrderClass libOrderClass) {
        return libOrderClassMapper.insertLibOrderClass(libOrderClass);
    }

    /**
     * 修改班级
     *
     * @param libOrderClass 班级
     * @return 结果
     */
    @Override
    public int updateLibOrderClass(LibOrderClass libOrderClass) {
        return libOrderClassMapper.updateLibOrderClass(libOrderClass);
    }

    /**
     * 批量删除班级
     *
     * @param classIds 需要删除的班级主键
     * @return 结果
     */
    @Override
    public int deleteLibOrderClassByClassIds(Long[] classIds) {
        return libOrderClassMapper.deleteLibOrderClassByClassIds(classIds);
    }

    /**
     * 删除班级信息
     *
     * @param classId 班级主键
     * @return 结果
     */
    @Override
    public int deleteLibOrderClassByClassId(Long classId) {
        return libOrderClassMapper.deleteLibOrderClassByClassId(classId);
    }
}